package dproxy.server.common.exceptions;

/**
 * Thrown when an error occurs when reading a request,
 * or when the remote server returns an "Error Response".
 */
public class ResponseReadException extends AppException {

    /** Error returned from remote application. */
    private byte[] errorContents;
    
    /**
     * @param errorContents Error returned from remote application
     */
    public ResponseReadException(byte[] errorContents) {
        this.errorContents = errorContents;
    }

    /**
     * @return Returns the errorContents.
     */
    public byte[] getErrorContents() {
        return errorContents;
    }

}
